home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13933 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 73 70 72 69 6e |Path: ne|ws.sprin|
|00000010| 74 6c 69 6e 6b 2e 6e 65 | 74 21 64 61 74 61 6c 79 |tlink.ne|t!dataly|
|00000020| 74 69 63 73 21 75 73 65 | 6e 65 74 0a 46 72 6f 6d |tics!use|net.From|
|00000030| 3a 20 52 6f 62 20 53 74 | 65 77 61 72 74 20 3c 73 |: Rob St|ewart <s|
|00000040| 74 65 77 40 64 61 74 61 | 6c 79 74 69 63 73 2e 63 |tew@data|lytics.c|
|00000050| 6f 6d 3e 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |om>.News|groups: |
|00000060| 63 6f 6d 70 2e 6c 61 6e | 67 2e 63 2b 2b 0a 53 75 |comp.lan|g.c++.Su|
|00000070| 62 6a 65 63 74 3a 20 52 | 65 3a 20 27 6e 65 77 27 |bject: R|e: 'new'|
|00000080| 20 26 20 27 64 65 6c 65 | 74 65 27 20 6d 65 6d 6f | & 'dele|te' memo|
|00000090| 72 79 20 6d 61 6e 61 67 | 65 6d 65 6e 74 0a 44 61 |ry manag|ement.Da|
|000000a0| 74 65 3a 20 57 65 64 2c | 20 32 37 20 4d 61 72 20 |te: Wed,| 27 Mar |
|000000b0| 31 39 39 36 20 31 36 3a | 34 38 3a 32 33 20 2d 30 |1996 16:|48:23 -0|
|000000c0| 35 30 30 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |500.Orga|nization|
|000000d0| 3a 20 44 61 74 61 6c 79 | 74 69 63 73 2c 20 49 6e |: Dataly|tics, In|
|000000e0| 63 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 33 |c.Messag|e-ID: <3|
|000000f0| 31 35 39 42 37 41 37 2e | 32 33 34 32 40 64 61 74 |159B7A7.|2342@dat|
|00000100| 61 6c 79 74 69 63 73 2e | 63 6f 6d 3e 0a 52 65 66 |alytics.|com>.Ref|
|00000110| 65 72 65 6e 63 65 73 3a | 20 3c 34 6a 38 31 63 65 |erences:| <4j81ce|
|00000120| 24 69 76 6b 40 75 6d 74 | 2e 75 6d 74 2e 65 64 75 |$ivk@umt|.umt.edu|
|00000130| 3e 0a 4e 4e 54 50 2d 50 | 6f 73 74 69 6e 67 2d 48 |>.NNTP-P|osting-H|
|00000140| 6f 73 74 3a 20 32 30 34 | 2e 36 32 2e 32 32 34 2e |ost: 204|.62.224.|
|00000150| 37 31 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |71.Mime-|Version:|
|00000160| 20 31 2e 30 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|00000170| 65 3a 20 74 65 78 74 2f | 70 6c 61 69 6e 3b 20 63 |e: text/|plain; c|
|00000180| 68 61 72 73 65 74 3d 75 | 73 2d 61 73 63 69 69 0a |harset=u|s-ascii.|
|00000190| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|000001a0| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 37 62 69 74 0a |-Encodin|g: 7bit.|
|000001b0| 58 2d 4d 61 69 6c 65 72 | 3a 20 4d 6f 7a 69 6c 6c |X-Mailer|: Mozill|
|000001c0| 61 20 32 2e 30 20 28 57 | 69 6e 4e 54 3b 20 49 29 |a 2.0 (W|inNT; I)|
|000001d0| 0a 54 6f 3a 20 48 6f 20 | 48 73 69 6e 20 3c 65 64 |.To: Ho |Hsin <ed|
|000001e0| 64 79 39 32 40 73 65 6c | 77 61 79 2e 75 6d 74 2e |dy92@sel|way.umt.|
|000001f0| 65 64 75 3e 0a 0a 48 6f | 20 48 73 69 6e 20 77 72 |edu>..Ho| Hsin wr|
|00000200| 6f 74 65 3a 0a 3e 20 0a | 3e 20 48 69 20 74 68 65 |ote:.> .|> Hi the|
|00000210| 72 65 2c 20 67 6f 74 20 | 61 20 66 65 77 20 71 75 |re, got |a few qu|
|00000220| 65 73 74 69 6f 6e 73 20 | 68 65 72 65 20 61 62 6f |estions |here abo|
|00000230| 75 74 20 43 2b 2b 20 69 | 6d 70 6c 65 6d 65 6e 74 |ut C++ i|mplement|
|00000240| 61 74 69 6f 6e 73 20 6f | 66 20 6e 65 77 20 61 6e |ations o|f new an|
|00000250| 64 0a 3e 20 64 65 6c 65 | 74 65 2e 0a 3e 20 31 29 |d.> dele|te..> 1)|
|00000260| 20 48 6f 77 20 64 6f 20 | 6e 65 77 20 61 6e 64 20 | How do |new and |
|00000270| 64 65 6c 65 74 65 20 6d | 61 6e 61 67 65 20 6d 65 |delete m|anage me|
|00000280| 6d 6f 72 79 20 61 74 20 | 61 20 6c 6f 77 20 6c 65 |mory at |a low le|
|00000290| 76 65 6c 20 28 69 65 2e | 20 74 68 65 20 69 6e 74 |vel (ie.| the int|
|000002a0| 65 72 6e 61 6c 0a 3e 20 | 77 6f 72 6b 69 6e 67 20 |ernal.> |working |
|000002b0| 6f 66 20 6e 65 77 20 61 | 6e 64 20 64 65 6c 65 74 |of new a|nd delet|
|000002c0| 65 2e 29 0a 3e 20 54 68 | 65 20 6c 61 6e 67 75 61 |e.).> Th|e langua|
|000002d0| 67 65 20 72 65 71 75 69 | 72 65 73 20 6e 6f 74 68 |ge requi|res noth|
|000002e0| 69 6e 67 20 6f 66 20 74 | 68 65 20 69 6d 70 6c 65 |ing of t|he imple|
|000002f0| 6d 65 6e 74 61 74 69 6f | 6e 20 73 61 76 65 20 74 |mentatio|n save t|
|00000300| 68 61 74 20 69 74 20 0a | 61 6c 6c 6f 63 61 74 65 |hat it .|allocate|
|00000310| 20 6d 65 6d 6f 72 79 2e | 20 20 41 6c 6c 20 69 6d | memory.| All im|
|00000320| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 73 20 6f 66 |plementa|tions of|
|00000330| 20 77 68 69 63 68 20 49 | 27 6d 20 61 77 61 72 65 | which I|'m aware|
|00000340| 20 75 73 69 6e 67 20 0a | 6d 61 6c 6c 6f 63 20 61 | using .|malloc a|
|00000350| 6e 64 20 66 72 65 65 2c | 20 62 75 74 20 64 6f 6e |nd free,| but don|
|00000360| 27 74 20 66 6f 72 67 65 | 74 20 74 68 61 74 20 6e |'t forge|t that n|
|00000370| 65 77 20 61 6e 64 20 64 | 65 6c 65 74 65 20 63 61 |ew and d|elete ca|
|00000380| 6c 6c 20 63 74 6f 72 73 | 20 0a 61 6e 64 20 64 74 |ll ctors| .and dt|
|00000390| 6f 72 73 2c 20 72 65 73 | 70 65 63 74 69 76 65 6c |ors, res|pectivel|
|000003a0| 79 2e 0a 0a 3e 20 32 29 | 20 44 6f 65 73 20 69 74 |y...> 2)| Does it|
|000003b0| 20 63 6f 61 6c 65 73 63 | 65 20 73 6d 61 6c 6c 20 | coalesc|e small |
|000003c0| 62 6c 6f 63 6b 73 20 6f | 66 20 6d 65 6d 6f 72 79 |blocks o|f memory|
|000003d0| 20 61 66 74 65 72 20 64 | 65 6c 65 74 65 20 74 6f | after d|elete to|
|000003e0| 20 70 72 65 76 65 6e 74 | 0a 3e 20 66 72 61 67 6d | prevent|.> fragm|
|000003f0| 65 6e 74 61 74 69 6f 6e | 73 3f 20 48 6f 77 20 64 |entation|s? How d|
|00000400| 6f 65 73 20 69 74 20 64 | 6f 20 69 74 20 28 69 65 |oes it d|o it (ie|
|00000410| 2e 20 61 6c 67 6f 72 69 | 74 68 6d 29 20 3f 0a 3e |. algori|thm) ?.>|
|00000420| 20 54 68 65 20 6c 61 6e | 67 75 61 67 65 20 64 6f | The lan|guage do|
|00000430| 65 73 6e 27 74 20 73 70 | 65 63 69 66 79 20 74 68 |esn't sp|ecify th|
|00000440| 69 73 2e 20 20 49 74 20 | 69 73 20 65 6e 74 69 72 |is. It |is entir|
|00000450| 65 6c 79 20 0a 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |ely .imp|lementat|
|00000460| 69 6f 6e 20 64 65 70 65 | 6e 64 65 6e 74 2e 20 20 |ion depe|ndent. |
|00000470| 54 68 75 73 2c 20 69 74 | 20 69 73 20 75 70 20 74 |Thus, it| is up t|
|00000480| 6f 20 79 6f 75 72 20 72 | 75 6e 74 69 6d 65 20 0a |o your r|untime .|
|00000490| 6c 69 62 72 61 72 79 2e | 0a 0a 3e 20 33 29 20 50 |library.|..> 3) P|
|000004a0| 61 67 65 20 6f 72 20 76 | 69 72 74 75 61 6c 20 6d |age or v|irtual m|
|000004b0| 65 6d 6f 72 79 20 69 73 | 20 68 61 6e 64 6c 65 64 |emory is| handled|
|000004c0| 20 62 79 20 74 68 65 20 | 4f 53 20 6f 66 20 74 68 | by the |OS of th|
|000004d0| 65 20 73 79 73 74 65 6d | 2e 20 49 20 77 6f 75 6c |e system|. I woul|
|000004e0| 64 0a 3e 20 6c 69 6b 65 | 20 74 6f 20 6b 6e 6f 77 |d.> like| to know|
|000004f0| 20 68 6f 77 20 69 73 20 | 6d 65 6d 6f 72 79 20 6d | how is |memory m|
|00000500| 61 6e 61 67 65 20 77 69 | 74 68 69 6e 20 61 20 70 |anage wi|thin a p|
|00000510| 61 67 65 3f 0a 3e 20 44 | 69 74 74 6f 2e 20 20 54 |age?.> D|itto. T|
|00000520| 68 69 73 20 69 73 20 4f | 53 20 61 6e 64 20 63 6f |his is O|S and co|
|00000530| 6d 70 69 6c 65 72 20 73 | 70 65 63 69 66 69 63 2e |mpiler s|pecific.|
|00000540| 0a 0a 2d 2d 20 0a 52 6f | 62 65 72 74 20 53 74 65 |..-- .Ro|bert Ste|
|00000550| 77 61 72 74 09 09 7c 20 | 4d 79 20 6f 70 69 6e 69 |wart..| |My opini|
|00000560| 6f 6e 73 20 61 72 65 20 | 75 73 75 61 6c 6c 79 20 |ons are |usually |
|00000570| 6d 79 20 6f 77 6e 2e 0a | 44 61 74 61 6c 79 74 69 |my own..|Datalyti|
|00000580| 63 73 2c 20 49 6e 63 2e | 09 7c 20 73 74 65 77 40 |cs, Inc.|.| stew@|
|00000590| 64 61 74 61 6c 79 74 69 | 63 73 2e 63 6f 6d 0a |datalyti|cs.com. |
+--------+-------------------------+-------------------------+--------+--------+